from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired, Length

audio_status = {
    9: '未审',
    8: '已审'
}


# 专报
class ReportForm(FlaskForm):
    title = StringField('专报标题', validators=[DataRequired(), Length(1, 40)])
    sub_title = StringField('副标题', validators=[DataRequired(), Length(1, 40)])
    report_person = StringField('报送单位', validators=[DataRequired(), Length(1, 200)])
    push_person = StringField('报告人', validators=[DataRequired(), Length(1, 200)])
    edit_person = StringField('验校人', validators=[DataRequired(), Length(1, 140)])
    sign_issue = StringField('签发人', validators=[DataRequired(), Length(1, 140)])
    num = StringField('份数', validators=[DataRequired(), Length(1, 40)])
    items = StringField('文章ID', validators=[DataRequired(), Length(1, 400)])
    submit = SubmitField('提交')
